package com.zx.feign.fallback;

import com.zx.feign.ProductFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 商品微服务的降级类
 * @author jack.wu
 * @version 1.0
 * @date 2020-03-12
 */
@Slf4j
@Component
public class ProductFeignClientCallBack implements ProductFeignClient {

    @Override
    public String findById(Long id) {
        log.error("进入到降级方法");
        return "feign调用触发熔断降级方法";
    }
}
